﻿@model TeamDataModel

<div>

    @if (ViewContext.RouteData.GetRequiredString("action") == "CreateVersion")
    {
        <br />
        <div class="k-block k-info-colored" style="font-style: italic;">
            <span class="k-icon k-i-note"></span>
            A new version of the selected record will be created.
        </div>
    }

    
    <br />
    @Html.DisplayFor(m => m.EditorDbType)
    <br />
    <div class="k-block k-error-colored">@Html.ValidationSummary()</div>

    @using (Html.BeginForm(FormMethod.Post)) 
    {
        @Html.AntiForgeryToken()
        @Html.HiddenFor(m => m.TeamVersionGuid)
        @Html.HiddenFor(m => m.ApprovalGuid)
        @Html.HiddenFor(m => m.TeamGuid)
            
        <section>
            <fieldset>
                <legend>@ViewBag.Title</legend>

                @Html.EditorFor(m => m.TeamName)
                @Html.EditorFor(m => m.VenueGuid)
                @Html.EditorFor(m => m.CountryGuid)
                @Html.EditorFor(m => m.ActiveFrom)
                @Html.EditorFor(m => m.ActiveTo)

                @Html.Partial("_SubmitButton")

            </fieldset>
        </section>
    }
</div>


